class TFOutpostFX extends Emitter;

simulated function postbeginplay()
{
    super.PostBeginPlay();
    settimer(0.2,true);
}

simulated function timer()
{
    if(tfoutpost(owner)!=none)
    {
        Emitters[0].StartSizeRange.X.Min=float(tfoutpost(owner).outpdist)*0.375;
        Emitters[0].StartSizeRange.X.Max=float(tfoutpost(owner).outpdist)*0.375;

        if(tfstation(owner).MyTeam==0)
        {
            Emitters[0].ColorScale[1].Color.B=0;
            Emitters[0].ColorScale[1].Color.G=30;
            Emitters[0].ColorScale[1].Color.R=64;
            Emitters[0].ColorScale[2].Color.B=0;
            Emitters[0].ColorScale[2].Color.G=0;
            Emitters[0].ColorScale[2].Color.R=192;
        }
        else
        {
            Emitters[0].ColorScale[1].Color.B=64;
            Emitters[0].ColorScale[1].Color.G=64;
            Emitters[0].ColorScale[1].Color.R=0;
            Emitters[0].ColorScale[2].Color.B=192;
            Emitters[0].ColorScale[2].Color.G=0;
            Emitters[0].ColorScale[2].Color.R=0;
        }
    }
    else
    {
        destroy();
        return;
    }

    bhidden=(tfstation(owner).grade==0);
}

defaultproperties
{
     Begin Object Class=MeshEmitter Name=MeshEmitter1
         StaticMesh=StaticMesh'TFMedia.fX.TFShockwave'
         RenderTwoSided=True
         UseParticleColor=True
         UseColorScale=True
         FadeOut=True
         FadeIn=True
         SpinParticles=True
         UseSizeScale=True
         UseRegularSizeScale=False
         UniformSize=True
         ColorScale(1)=(RelativeTime=0.300000,Color=(B=255,G=255,R=255,A=255))
         ColorScale(2)=(RelativeTime=0.600000,Color=(B=222,G=222,R=255,A=128))
         ColorScale(3)=(RelativeTime=1.000000)
         FadeOutStartTime=1.000000
         FadeInEndTime=0.300000
         MaxParticles=3
         SpinsPerSecondRange=(X=(Min=-0.150000,Max=0.150000),Y=(Min=-0.150000,Max=0.150000),Z=(Min=-0.150000,Max=0.150000))
         SizeScale(0)=(RelativeSize=1.000000)
         SizeScale(1)=(RelativeTime=1.000000,RelativeSize=0.950000)
         StartSizeRange=(X=(Min=18.500000,Max=18.500000),Y=(Min=0.800000,Max=0.800000),Z=(Min=0.800000,Max=0.800000))
         DrawStyle=PTDS_AlphaBlend
         SecondsBeforeInactive=0.000000
     End Object
     Emitters(0)=MeshEmitter'taskforces.TFOutpostFX.MeshEmitter1'

     bHidden=True
     bNoDelete=False
}
